package com.himooc.jdk8.lambda;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

import org.junit.Test;

public class TestDateTimeFormatter {

	@Test
	public void testDateTimeFormatter() {
		DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
		LocalDateTime dateTime = LocalDateTime.parse("2015-05-08 11:12:36", formatter);
		
		System.out.println(dateTime);
	}
	
}
